package com.campuscarbooking.api.dto.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * Message DTO for cache consistency operations sent via RabbitMQ
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CacheConsistencyMessage implements Serializable {
    private String operationType; // CREATE, UPDATE, DELETE
    private String entityType; // SCHEDULE, RESERVATION, USER, etc.
    private String entityId;
    private String cacheKey;
    private Object data;
    private Long timestamp;
} 